Résultats et Discussions

\(X_i=10\)

import plotFuncAndClass as hm
import pandas as pd
from ipywidgets import interact, interactive, fixed, interact_manual, IntSlider
# Standard plotly imports
import chart_studio.plotly as py
import plotly.graph_objs as go
from plotly.offline import iplot, init_notebook_mode
# Using plotly + cufflinks in offline mode
import cufflinks as cf
cf.go_offline(connected=False)
init_notebook_mode(connected=False)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-61-84f4e80865b4> in <module>
      8 dfTest=pd.DataFrame(data=[textXColumn, calcParam(dfDaily), calcParam(dfSM1Daily),calcParam(dfSM2Daily), calcParam(dfMILPDaily)]).T
      9 dfTest.columns=['X', 'CoSim','SM1','SM2', 'MILP']
---> 10 dfTest.plot(kind='table')

~\Anaconda3\lib\site-packages\pandas\plotting\_core.py in __call__(self, *args, **kwargs)
    778 
    779         if kind not in self._all_kinds:
--> 780             raise ValueError(f"{kind} is not a valid plot kind")
    781 
    782         # The original data structured can be transformed before passed to the

ValueError: table is not a valid plot kind
fig = go.Figure(data=[go.Table(
    header=dict(values=list(dfTest.columns),
                fill_color='paleturquoise',
                align='left'),
    cells=dict(values=dfTest.transpose().values.tolist(),
               fill_color='lavender',
               align='left'))
])

fig.show()
import chart_studio.plotly as py
import plotly.graph_objs as go

trace1 = go.Scatter(
    x=[1, 2, 3, 4],
    y=[1, 4, 9, 16],
    name=r'$\alpha_{1c} = 352 \pm 11 \text{ km s}^{-1}$'
)
trace2 = go.Scatter(
    x=[1, 2, 3, 4],
    y=[0.5, 2, 4.5, 8],
    name=r'$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$'
)
data = [trace1, trace2]
layout = go.Layout(
    xaxis=dict(
        title=r'$\sqrt{(n_\text{c}(t|{T_\text{early}}))}$'
    ),
    yaxis=dict(
        title=r'$d, r \text{ (solar radius)}$'
    )
)
fig = go.Figure(data=data, layout=layout)
py.iplot(fig, filename='latex')
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-64-92122523205b> in <module>
     22 )
     23 fig = go.Figure(data=data, layout=layout)
---> 24 py.iplot(fig, filename='latex')

~\Anaconda3\lib\site-packages\chart_studio\plotly\plotly.py in iplot(figure_or_data, **plot_options)
    133     if "auto_open" not in plot_options:
    134         plot_options["auto_open"] = False
--> 135     url = plot(figure_or_data, **plot_options)
    136 
    137     if isinstance(figure_or_data, dict):

~\Anaconda3\lib\site-packages\chart_studio\plotly\plotly.py in plot(figure_or_data, validate, **plot_options)
    274             grid_filename = filename + "_grid"
    275 
--> 276         grid_ops.upload(
    277             grid=grid,
    278             filename=grid_filename,

~\Anaconda3\lib\site-packages\chart_studio\plotly\plotly.py in upload(cls, grid, filename, world_readable, auto_open, meta)
   1085                 payload["parent_path"] = parent_path
   1086 
-> 1087         file_info = _create_or_overwrite_grid(payload)
   1088 
   1089         cols = file_info["cols"]

~\Anaconda3\lib\site-packages\chart_studio\plotly\plotly.py in _create_or_overwrite_grid(data, max_retries)
   1526     if filename:
   1527         try:
-> 1528             lookup_res = v2.files.lookup(filename)
   1529             if isinstance(lookup_res.content, bytes):
   1530                 content = lookup_res.content.decode("utf-8")

~\Anaconda3\lib\site-packages\chart_studio\api\v2\files.py in lookup(path, parent, user, exists)
     83     url = build_url(RESOURCE, route="lookup")
     84     params = make_params(path=path, parent=parent, user=user, exists=exists)
---> 85     return request("get", url, params=params)

~\Anaconda3\lib\site-packages\retrying.py in wrapped_f(*args, **kw)
     47             @six.wraps(f)
     48             def wrapped_f(*args, **kw):
---> 49                 return Retrying(*dargs, **dkw).call(f, *args, **kw)
     50 
     51             return wrapped_f

~\Anaconda3\lib\site-packages\retrying.py in call(self, fn, *args, **kwargs)
    218                     jitter = random.random() * self._wait_jitter_max
    219                     sleep = sleep + max(0, jitter)
--> 220                 time.sleep(sleep / 1000.0)
    221 
    222             attempt_number += 1

KeyboardInterrupt: